import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/style/element-variables.scss'
import router from './router/index';
import store from '@/store/index';
import Toolbar from '@/components/toolbar.vue';

// 图片根地址
import { baseUrl } from '@/utils/config/index.js';
import '@/utils/tools/xyTools'; // 常用方法

// 全局 eventBus
Vue.prototype.$EventBus = new Vue();
Vue.prototype.$baseUrl = baseUrl; // baseUrl 图片
Vue.prototype.$xy = window.$xy;

Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.component('Toolbar', Toolbar);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')